<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
	public function _initialize(){
		if (!session('user') == 'admin' && !session('pass') == 'qA0130') {
			echo "string";
			var_dump($_SERVER['REQUEST_URI']);
			$referer = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
			header("Location:https://yiyuan.snsnb.com/index.php/Home/Login/login?referer=$referer");
		}
	}	
}